package com.gin.kotlin.no_gay_alliance.base

import android.content.Context
import com.bumptech.glide.Glide
import java.io.File

class GlideUtils {
    companion object {
        const val CACHE_DIR = "GLIDE_IMAGE_CACHE"

        fun clearCache(context: Context) {
            Glide.get(context).clearMemory()
            Thread {
                File(context.cacheDir, CACHE_DIR).deleteRecursively()
                Glide.get(context).clearDiskCache()
            }.start()
        }
    }
}